<?php
/* @var $this CarPricesController */
/* @var $model CarPrices */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
	'id'=>'car-prices-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

    <div>
        <?php echo $form->labelEx($model,'car_type'); ?>
        <?php echo $form->dropDownList($model,'car_type',array(CarPrices::AUDI=>'Audi',CarPrices::BMW=>'BMW',
            CarPrices::CHEVROLET=>'Chevrolet',
            CarPrices::FORD=>'Ford',
            CarPrices::HONDA=>'Honda',
            CarPrices::HYUNDAI=>'Hyundai',CarPrices::KIA=>'Kia',CarPrices::LAND_ROVER=>'Land Rover',CarPrices::LEXUS=>'Lexus',CarPrices::MAZDA=>'Mazda',CarPrices::MERCEDES=>'Mercedes-Benz',CarPrices::MINI=>'MINI',CarPrices::MITSUBISHI=>'Mitsubishi',CarPrices::NISSAN=>'Nissan',CarPrices::PORSCHE=>'Porsche',CarPrices::RENAULT=>'Renault',CarPrices::SUBARU=>'Subaru',CarPrices::SUZUKI=>'Suzuki',CarPrices::TOYOTA=>'Toyota',CarPrices::VOLKSWAGEN=>'Volkswagen')); ?>
        <?php echo $form->error($model,'car_type'); ?>
    </div>

<!--    <div>-->
<!--        --><?php //echo $form->labelEx($model,'car_type'); ?>
<!--        --><?php //echo $form->dropDownList($model,'car_type',array(CarPrices::AUDI=>'Audi',CarPrices::BMW=>'BMW',CarPrices::CHEVROLET=>'Chevrolet',
//            CarPrices::FORD=>'Ford',
//            CarPrices::HONDA=>'Honda',
//            CarPrices::HYUNDAI=>'Hyundai')); ?>
<!--        --><?php //echo $form->error($model,'car_type'); ?>
<!--    </div>-->

	<div>
		<?php echo $form->labelEx($model,'car_name'); ?>
		<?php echo $form->textField($model,'car_name',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'car_name'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'dong_co'); ?>
		<?php echo $form->textField($model,'dong_co',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'dong_co'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'hop_so'); ?>
		<?php echo $form->textField($model,'hop_so',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'hop_so'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'cong_suat'); ?>
		<?php echo $form->textField($model,'cong_suat',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'cong_suat'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'momen_xoan'); ?>
		<?php echo $form->textField($model,'momen_xoan',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'momen_xoan'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'price'); ?>
		<?php echo $form->textField($model,'price',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'price'); ?>
	</div>

    <div class="row-actions">
        <?php $this->widget('bootstrap.widgets.BootButton', array('buttonType' => 'submit', 'type' => 'primary', 'icon' => 'ok', 'label' => $model->isNewRecord ? 'Create' : 'Save')); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->